package com.kangfu.db.mapper;

import com.kangfu.db.domain.entity.LeaveRecord;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface LeaveRecordMapper {

    public int insertLeaveRecord(LeaveRecord leaveRecord);

    public List<LeaveRecord> selectLeaveRecordList(@Param("userId") int userId, @Param("offset") int offset, @Param("pageSize") int pageSize);

    public LeaveRecord checkLeaveRecordByDate(@Param("userId") int userId, @Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

}
